/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - For4
 * <p>Powered by webrx On 2023-07-11 15:30:38
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class For8 {
    public static void main(String[] args) {
        int sp = 20;
        for (int i = 1; i <= 30; i += 2)
            System.out.println(" ".repeat(sp--).concat("*".repeat(i)));
        sp++;
        sp++;
        for (int i = 27; i >= 1; i -= 2)
            System.out.println(" ".repeat(sp++).concat("*".repeat(i)));

    }
}
